<div style="margin:0 auto;width:100%;">
<?php
    if (isset($this->previous)){
          echo '<p class="prev"><a href="#" onclick="loadPage('.$this->previous.')"> &lt; Previous</a> </p> ';
    }
    foreach ($this->pagesInRange as $page){
       if ($page != $this->current){
               echo  '<p><a href="#" onclick="loadPage('.$page.')">' . $page . '</a> </p> ';
      }else{
          echo "<p class='current'><b>".$page . "</b></p>";
      }
   }
     if (isset($this->next)){
        echo '<p class="next"><a href="#" onclick="loadPage('.$this->next.')">Next &gt;</a></p>';
       }
  ?></div>